//
//  DoubleDeckView.m
//  WE
//
//  Created by apple on 15/11/19.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "DoubleDeckView.h"
#import "Head.h"
@implementation DoubleDeckView 


- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {
        _fatherTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width / 2, frame.size.height)];
     
        
        _fatherTable.separatorStyle = UITableViewCellSeparatorStyleNone;
        _fatherTable.backgroundColor= [UIColor  colorWithRed:0.9273 green:0.9273 blue:0.9273 alpha:1.0];
        _sonTable = [[UITableView alloc] initWithFrame:CGRectMake(frame.size.width / 2 +1, 0, frame.size.width / 2 - 1, frame.size.height)];
        _sonTable.separatorStyle = UITableViewCellSeparatorStyleNone;
        [self addSubview:_fatherTable];
        [self addSubview:_sonTable];
        
    }
    
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
